package com.kikt.recyclerview.loadmore

/**
 * Created by cai on 2017/10/27.
 */
class MainPresenter(override val view: MainView) : IDataGetter<Data, MainActivity.ViewHolder> {
    override fun loadMoreData() {
        model.getData()
    }

    override fun refreshData() {
        model.getData(true)
    }

    override fun clearData() {

    }

    override var delegate: SimpleRecyclerViewHelper<Data, MainActivity.ViewHolder>.RvListDelegate? = null

    val model: MainModel = MainModelImpl(this)

}
